//
//  SYDBaseRequest.h
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/19.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface SYDBaseRequest : AFHTTPSessionManager
/**
 单例入口
 */
+ (instancetype)shareTool;

-(void)KPOST:(NSString *)URLString
            parameters:(id)parameters
        success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
        failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;


-(void)KGET:(NSString *)URLString
 parameters:(id)parameters
    success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
    failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
@end
